package com.springboot.project.common.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
/**
 * 部门表
 * 
 * @author lby
 * @email 2571664742@qq.com
 * @date 2018-06-30
 */

@TableName("sys_dept")
public class Dept extends Model<Dept> {

	private static final long serialVersionUID = 1L;
	
	//主键id
	private Integer id;
	//排序
	private Integer num;
	//父部门id
	private Integer pid;
	//父级ids
	private String pids;
	//简称
	private String simplename;
	//全称
	private String fullname;

	/**
	 * 设置：主键id
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：主键id
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：排序
	 */
	public void setNum(Integer num) {
		this.num = num;
	}
	/**
	 * 获取：排序
	 */
	public Integer getNum() {
		return num;
	}
	/**
	 * 设置：父部门id
	 */
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	/**
	 * 获取：父部门id
	 */
	public Integer getPid() {
		return pid;
	}
	/**
	 * 设置：父级ids
	 */
	public void setPids(String pids) {
		this.pids = pids;
	}
	/**
	 * 获取：父级ids
	 */
	public String getPids() {
		return pids;
	}
	/**
	 * 设置：简称
	 */
	public void setSimplename(String simplename) {
		this.simplename = simplename;
	}
	/**
	 * 获取：简称
	 */
	public String getSimplename() {
		return simplename;
	}
	/**
	 * 设置：全称
	 */
	public void setFullname(String fullname) {
		this.fullname = fullname;
	}
	/**
	 * 获取：全称
	 */
	public String getFullname() {
		return fullname;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
        return "Dept{" +
        "id=" + id + "," +
        "num=" + num + "," +
        "pid=" + pid + "," +
        "pids=" + pids + "," +
        "simplename=" + simplename + "," +
        "fullname=" + fullname + "," +
        "}";
	}
}
